$(document).ready(function() {
	
	if(!$("#check_pac").attr("checked"))
		$("#id_p").attr("disabled","disabled");
	
	$("#check_pac").click(function(){
		if(this.checked)
			$("#id_p").removeAttr("disabled");
		else
			$("#id_p").attr("disabled","disabled");
	});
});